package com.btpj.module_tree_details.data.remote

import com.btpj.jetpack.entity.ApiResponse
import com.btpj.module_tree_details.data.entity.TreeDetail
import retrofit2.http.*

/**
 * 数据请求接口
 *
 * @author LTP 2020/7/10
 */
interface NetApi {

    @GET(value = "/article/list/{count}/json")
    suspend fun getTreeDetailsList(
        @Path("count") count: Int,
        @Query("cid") cid: Int
    ): ApiResponse<TreeDetail>

    @POST("/sdk/hackness/selfie_hack_detect")
    suspend fun testLinkFace(
        @Body id: String,
        @Body secret: String,
        @Body es: String,
        @Body file: ByteArray
    ): ApiResponse<Any>
}